package com.sh.mykotlinstudy

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_log.*

class LogActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_log)
        btn_login.setOnClickListener{
            val phone = tv_phone.text
            val pwd = tv_pwd.text
            val  msg = "手机号$phone\n密码$pwd"
            Toast.makeText(this,msg,Toast.LENGTH_SHORT).show()
        }
    }
}
